package io.github.talelin.latticy.bo;

import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * banner的入参信息,服务于新增、修改
 *
 * @author YiHua
 * @date 2021/11/25 4:30 下午
 */
@Getter
@Setter
public class BannerBO {

       @NotBlank
       @Length(min = 2, max = 20)
       private String name;

       @Length(min = 2, max = 30)
       private String title;

       @Length(min = 2, max = 256)
       private String img;

       @Length(min = 2, max = 256)
       private String description;

}
